package com.kfyang.manualgear.dao;

import com.kfyang.manualgear.annotation.Dao;
import com.kfyang.manualgear.entity.AEntity;

import java.util.List;

@Dao(entity = AEntity.class)
public interface ADao {
    AEntity selectById(int id);

    List<AEntity> selectAll();

    int update(AEntity entity);

    int insert(AEntity entity);

    int insertAll(List<AEntity> entityList);

    int deleteById(int id);

    int deleteByIds(List<Integer> ids);
}
